<?php
include_once('common/header.php');
$intPage		= $objRequest->getParam('page', 1);
$strCategoryId	= $objRequest->getParam('categoryid', 0);

$intCategoryId	= Ecore_Function::hex2Dec($strCategoryId);
$intType		= 0;
$intSpec		= 0;
$intEducateId	= 0;
$intProvinceId	= 0;
$intLimit		= $variable['EDUCATE_LIMIT']['val'];
$intOffset		= ($intPage-1)*$intLimit;
$intTotal		= 0;
$objEducation	= new Education();
if($intCategoryId == 0) {			
} else {
	$objCategory	= new Category();
	$arrCategory	= $objCategory->get($intCategoryId);
	$intType		= isset($arrCategory['type']) ? $arrCategory['type'] : EDUCATION_SPEC_TYPE;
	$arrEducation	= $objEducation->getAll(0, $intSpec, $intCategoryId, $intOffset, $intLimit, $intEducateId, $intProvinceId, $intTotal);
	$this->view->category  = $arrCategory;
	$this->view->education = $arrEducation;
}
